package com.fenghongzhang.shop1903;

import com.fenghongzhang.shop1903.test.SubSubject;
import com.fenghongzhang.shop1903.test.User;

/**
 * demo
 */
public class Test {
    public static void main(String[] args) {

        SubSubject subSubject = new SubSubject();
        User user1 = new User();
        User user2 = new User();
        User user3 = new User();


        subSubject.attach(user1);
        subSubject.attach(user2);
        subSubject.attach(user3);

        subSubject.notify("哈哈");
    }
}
